-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
document multi-line strings #146
Conversation
This fixes #145 - though I don't know where else we can call it out when centers upgrade this puppet module.
That PR fixed it so multiline strings actually worked. Before we were just passing |
We can test on our systems, but I'm fairly sure it doesn't work anymore or maybe we needed In any case - I can submit patches tomorrow to our test systems to know for sure. |
The classroom YAML was simply impossible with the old mechanism since the old mechanism was a bunch of ERB to render YAML so the classroom data would have been incredibly complex ERB and only solved that immediate problem and needed updates if the structure of our "custom" data changed. We don't need to constantly tweak ERB if we pass the entire data structure into I also thought there was something changed with OnDemand so the newlines didn't work or something, maybe related to 3.1? |
The unit tests still do the old method: puppet-module-openondemand/spec/defines/cluster_spec.rb Lines 34 to 35 in 08101d3
The contents are dumped:
I don't think there is a way to force If I dump the data from
So if the escaped newline is what |
No, I get why we changed this module's implementation - I meant why did we change our systems to use multi-line strings in merge request
I noticed this issue initially on our dev servers (when we were doing the classroom changes) and erroneously attributed it to 3.1 requiring a newer version of Ruby, so that's a red herring.
That's a good point. It's here - |
I think the change to multiline strings in OSC's Puppet code was to work around how
I wonder if it's worth changing to this maybe?
|
Yea, to make matters worse - single quotes (what we had) behave differently.
Could be - at least on the In any case - I think just documenting multi-line strings as the best practice solves a lot of these. |
This fixes #145 - though I don't know where else we can call it out when centers upgrade this puppet module.